<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
boolean flag = false;
String bsalary = new String(request.getParameter("basic_salary").getBytes("ISO-8859-1"),"UTF-8");
String str = "\\d{1,20}";			//bsalary限定为1~20位数字
if(bsalary.matches(str)){
	flag = true;
	out.println("<span id='w3'><font color = green>Primary Salary is available!</font></span>");
}else{
	out.println("<span id = 'w3'><font color = red>Basic salary only for digits!</font></span>");
}
%>